/*
 *  Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the GNU Lesser Public License v2.1
 *  which accompanies this distribution, and is available at
 *  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 *  Contributors:
 *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - initial API and implementation
 */
package de.ipk_gatersleben.bit.bi.edal.primary_data.metadata;

/**
 * Provides an empty meta data type.
 * 
 * @author lange
 * @author arendd
 */
public class EmptyMetaData extends UntypedData {

	private static final long serialVersionUID = 1L;

	private static final String EMPTY = "empty";

	/**
	 * Constructor for EmptyMetaData.
	 */
	public EmptyMetaData() {
		super(EMPTY);
	}

	/** {@inheritDoc} */
	@Override
	public int compareTo(final UntypedData datatype) {

		if (datatype instanceof EmptyMetaData) {
			return EMPTY.compareTo(EmptyMetaData.EMPTY);
		} else {
			return super.compareTo(datatype);
		}
	}
}